package com.brainhealth.customer.service;

import java.util.List;
import com.brainhealth.customer.domain.RoomChatRecord;

/**
 * AI聊天记录Service接口
 * 
 * @author ruoyi
 * @date 2023-11-01
 */
public interface IRoomChatRecordService 
{

    /**
     * 查询AI聊天记录
     *
     * @param id AI聊天记录主键
     * @return AI聊天记录
     */
    public RoomChatRecord selectRoomChatRecordById(Long id);

    /**
     * 查询最后3个聊天包聊天内容
     * @param customerId 会员ID
     * @return
     */
    List<Long> selectChatPacketIdList(Long customerId);

    /**
     * 查询AI聊天记录列表
     * 
     * @param roomChatRecord AI聊天记录
     * @return AI聊天记录集合
     */
    public List<RoomChatRecord> selectRoomChatRecordList(RoomChatRecord roomChatRecord);

    /**
     * 查询聊天字数
     * @param roomChatRecord
     * @return
     */
    Long selectRoomChatTokens(RoomChatRecord roomChatRecord);

    /**
     * 批量新增个人空间聊天记录
     * @param roomChatRecordList
     * @return
     */
    int batchInsertRoomChatRecord(List<RoomChatRecord> roomChatRecordList);

    /**
     * 新增AI聊天记录
     * 
     * @param roomChatRecord AI聊天记录
     * @return 结果
     */
    public int insertRoomChatRecord(RoomChatRecord roomChatRecord);

    /**
     * 修改AI聊天记录
     * 
     * @param roomChatRecord AI聊天记录
     * @return 结果
     */
    public int updateRoomChatRecord(RoomChatRecord roomChatRecord);

    /**
     * 批量删除AI聊天记录
     * 
     * @param ids 需要删除的AI聊天记录主键集合
     * @return 结果
     */
    public int deleteRoomChatRecordByIds(Long[] ids);

    /**
     * 删除AI聊天记录信息
     * 
     * @param id AI聊天记录主键
     * @return 结果
     */
    public int deleteRoomChatRecordById(Long id);
}
